package com.winchain.chainbill.bill.base.service.impl;

import com.shell.bee.persistence.service.impl.PersistentServiceImpl;
import com.winchain.chainbill.bill.base.dao.CbRpurDao;
import com.winchain.chainbill.bill.base.po.CbRpur;
import com.winchain.chainbill.bill.base.service.CbRpurService;
import com.winchain.chainbill.bill.biz.repurchase.vo.BillRpur;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("cbRpurService")
public class CbRpurServiceImpl extends PersistentServiceImpl<CbRpur> implements CbRpurService {
	@Autowired
	private CbRpurDao cbRpurDao;

	public BillRpur selectBillRpurByBillIdAndState(String billId, String RpurState) {
		return this.cbRpurDao.selectBillRpurByBillIdAndState(billId, RpurState);
	}

	public List<BillRpur> selectBillRpursByBillIdAndState(String RpurState, String... billIds) {
		return this.cbRpurDao.selectBillRpursByBillIdAndState(RpurState, billIds);
	}
}
